<?php
if($division_id == 1)
{
    $division = "Uda Palatha";
} else if($division_id == 2) {
    $division = "Uda Palatha MC";
} else if($division_id == 3) {
    $division = "Doluwa";
}
?>
<header><h3 class="tabs_involved" style="width:500px !important;">Branch Information <?php echo "- " . $division; ?></h3></header>
<div class="tab_container">
    <div id="tab1" class="tab_content">

        <table class="tablesorter" border="0" cellspacing="0" style="width:100%;">
            <thead>
                <tr>
                    <td align="center">Branch Id</td>
                    <td align="center">Branch Name</td>
                    <td align="center">Branch Description</td>
                    <td align="center" colspan="4">Statistics</td>
                    <td align="center">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                </tr>
            </thead>
            <tbody>
                <?php
                    foreach ($branchInfoArr as $branchInfo) :
                ?>
                <tr>
                    <td align="center"><?php echo $branchInfo['branchid']; ?></td>
                    <td align="center"><?php echo $branchInfo['branchname']; ?></td>
                    <td align="center"><?php echo $branchInfo['branchdsc']; ?></td>
                    <td align="center"><a href="javascript: void(0);" onclick="showStatistics(<?php echo $branchInfo['branchid']; ?>, 'religion')">Religion</a></td>
                    <td align="center"><a href="javascript: void(0);" onclick="showStatistics(<?php echo $branchInfo['branchid']; ?>, 'nationality')">Nationality</a></td>
                    <td align="center"><a href="javascript: void(0);" onclick="showStatistics(<?php echo $branchInfo['branchid']; ?>, 'gender')">Gender</a></td>
                    <td align="center"><a href="javascript: void(0);" onclick="showStatistics(<?php echo $branchInfo['branchid']; ?>, 'age')">Age</a></td>
                    <td align="center"><a href="<?php echo base_url(); ?>secu/branch/editbranch/<?php echo $branchInfo['branchid']; ?>"><img src="<?php echo base_url(); ?>images/admin/edit.gif" width="15" height="15" /></a></td>
                    <td align="center"><a href="javascript: void(0);" onclick="delBranch('<?php echo $branchInfo['branchid']; ?>', '<?php echo $division_id; ?>')"><img src="<?php echo base_url(); ?>images/admin/delete.gif" width="15" height="15" /></a></td>
                </tr>
                <?php
                    endforeach;
                ?>
            </tbody>
        </table>
    </div><!-- end of #tab1 -->
</div><!-- end of .tab_container -->

<div id="showmoredetails" style="display: none; margin: 30px 0 0 0;"></div>